import {request} from './requests'

export function getProduct(id) {
    return request({
        url: '/products/' + id,
        method: 'get'
    })
}

export function addCart(id, selected=true) {
    return request({
        url: '/carts',
        method: 'post',
        data: {
            productId: id,
            selected: selected
        }
    })
}
